<!-- 参考官方文档 -->
<template>
    <view class="">

    </view>
</template>

<script lang="ts" setup>
    //显示导航条加载动画
    uni.showNavigationBarLoading();
    setTimeout(() => {
        //动态设置页面标题
        uni.setNavigationBarTitle({
            title: "动态标题"
        });
        //隐藏导航条加载动画
        uni.hideNavigationBarLoading();
    }, 2000);
</script>

<style lang="scss" scoped>

</style>